package cn.ipenta.rpc.entity;

import java.io.Serializable;

public class FieldInfo implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private String name;
	private Integer maxLength;
	private Boolean ifIndex;
	private Boolean ifEncrypted;

	public FieldInfo(String name, Integer maxLength, Boolean ifIndex) {
		this.name = name;
		this.maxLength = maxLength;
		this.ifIndex = ifIndex;
	}

	public FieldInfo(String name, Integer maxLength, Boolean ifIndex, Boolean ifEncrypted) {
		this.name = name;
		this.maxLength = maxLength;
		this.ifIndex = ifIndex;
		this.ifEncrypted = ifEncrypted;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getMaxLength() {
		return this.maxLength;
	}

	public void setMaxLength(Integer maxLength) {
		this.maxLength = maxLength;
	}

	public Boolean getIfIndex() {
		return this.ifIndex;
	}

	public void setIfIndex(Boolean ifIndex) {
		this.ifIndex = ifIndex;
	}

	public Boolean getIfEncrypted() {
		return this.ifEncrypted;
	}

	public void setIfEncrypted(Boolean ifEncrypted) {
		this.ifEncrypted = ifEncrypted;
	}

}

